package com.isoftstone.project.system.service;


import com.isoftstone.framework.domain.Page;
import com.isoftstone.project.system.domain.SysRole;

import java.util.List;

public interface ISysRoleService {
    SysRole getRoleById(String roleId)throws Exception;

    SysRole getRoleByCode(String roleCode)throws Exception;
    SysRole getRoleByCodeName(String roleName)throws Exception;

    List<SysRole> getRolelistPage(Page page) throws Exception;

    List<SysRole> getRole(String userId) throws Exception;

    public void saveRole(SysRole role)throws Exception;

    public void updateRole(SysRole role)throws Exception;

    /**批量删除
     * @param roleId
     * @throws Exception
     */
    public void deleteRole(String roleId)throws Exception;

}
